package com.wanxi.feign.fallback;

import com.wanxi.common.entity.NewsTypeModel;
import com.wanxi.common.result.ResultDTO;
import com.wanxi.feign.clients.NewstypeFeignClient;
import org.springframework.stereotype.Component;

@Component
public class NewstypeFeignFallback implements NewstypeFeignClient {
    @Override
    public NewsTypeModel findNewsTypeById(Long id) {
        return NewsTypeModel.builder()
                .name("报错了，数据查询失败")
                .build();
    }
}
